package com.dhcc.httpApiService;

import com.burukeyou.uniapi.http.annotation.HttpApi;
import com.burukeyou.uniapi.http.annotation.request.GetHttpInterface;

/**
 * 分布式ID生成接口
 * @ProjectName Dhcc-Cloud
 * @PackageName com.dhcc.httpApiService
 * @Title idGeneratorService
 * @Date 2024/10/17 下午9:01
 * @Author LiuGuoting
 */
@HttpApi(url="http://localhost:7001/idGenerator")
public interface IdGeneratorService {
    /**
     * 获取分布式ID
     * @return 下一个ID
     */
    @GetHttpInterface("/nextId")
    Long nextId();
}
